package edu.utility.xuggle;

import java.io.File;
import java.io.FileInputStream;
import java.io.Serializable;

public class MyPicture implements Serializable{
	private static final long serialVersionUID = 1L;
	private byte[] bytes;
	
	public void setBytes(File file){
		bytes = new byte[(int)file.length()];
		try{
			FileInputStream fileInputStream = new FileInputStream(file);
			fileInputStream.read(bytes);
		}catch(Exception ex){}
		
	}
	public byte[] getBytes(){
		return bytes;
	}
	
	public void setBytes(byte[] bytes){
		this.bytes = bytes;
	}
}
